﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Work.UI.Web.MVC.Models.Registration
{
    public class EmployeeModel
    {
        [Required(ErrorMessage = "Обовязкове поле.")]
        [StringLength(25)]
        public string Name { get; set; }

        [Required(ErrorMessage = "Обовязкове поле.")]
        [StringLength(25)]
        public string Surname { get; set; }

        [Required(ErrorMessage = "Обовязкове поле.")]
        public int? IdRegion { get; set; }

        [Required(ErrorMessage = "Обовязкове поле.")]
        [StringLength(25)]
        public string Gender { get; set; }

        [Required(ErrorMessage = "Обовязкове поле.")]
        [DataType(DataType.Date, ErrorMessage = "Не вірно заповнене поле.")]
        public DateTime Birthday { get; set; }

        [Required(ErrorMessage = "Обовязкове поле.")]
        [DataType(DataType.PhoneNumber, ErrorMessage = "Не вірно заповнене поле.")]
        [StringLength(25)]
        public string Phone { get; set; }
    }
}